 

package com.zdkj.daemon.quartz.config;

import org.springframework.boot.autoconfigure.quartz.SchedulerFactoryBeanCustomizer;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;

/**
 * 定时任务自定义配置
 * @author 郑健楠
 */
@Configuration
public class PigxQuartzCustomizerConfig implements SchedulerFactoryBeanCustomizer {
	/*
	 * 设置自定义配置信息(non-Javadoc)
	 * @see org.springframework.boot.autoconfigure.quartz.SchedulerFactoryBeanCustomizer#customize(org.springframework.scheduling.quartz.SchedulerFactoryBean)
	 */
	@Override
	public void customize(SchedulerFactoryBean schedulerFactoryBean) {
		schedulerFactoryBean.setWaitForJobsToCompleteOnShutdown(true);
	}
}
